home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
stufit2.zip
/
STUFIT.DOC
< prev
next >
Wrap
Text File
|
1989-07-26
|
17KB
|
328 lines
STUFIT.COM
Disk file stuffer
-----------------
V0.6 release 6.14.85
Released to to public domain for personal use only.
(c) 1985 Zider Brothers, San Francisco
WARNING: You may lose a file with this program if you:
. interrupt it during operation
. run it on a non-IBM compatible machine
(works OK on a DEC Rainbow)
This loss is temporary. See "Caution" section below.
Program description
-------------------
STUFIT is a program that "stuffs" files into the inner part of the disk.
That is, it will move a file from the outer part of a disk and into the
free area nearest the spindle. As a result, this inner area can be used for
lesser-used programs, freeing up the outside tracks for working space.
File access times can be improved considerably, especially for disks
that are more than half full.
The program works for hard disks and diskettes.
Program syntax help is available on-line, by specifying the program with
no arguments. Paths are accepted, but a drive designation other
than the default drive will generate an error.
Disk space management
---------------------
The below display shows the space usage of a typical, just-loaded diskette.
All the lower-numbered tracks (those closest to the directory) are fully
loaded. The higher-numbered tracks (those closest to the disk spindle,
toward the inner part of the disk) are all empty:
----------------
Space Usage for the Complete Diskette
63% 452 sectors given to available free space
1 sector given to the boot record
1% 4 sectors given to the file allocation table
1% 7 sectors given to the file directory
36% 256 sectors given to normal files
No sectors given to hidden, system or read-only files
No sectors given to unavailable space (free with CHKDSK)
No sectors given to conflicting file space allocation
No sectors given to Bad-Track (unusable)
Map of Diskette Space
Track 1 2 3 3
0123456789012345678901234567890123456789
1 B■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ ░ Unused sector (free space)
Side S 3 F■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ B Boot record
0 e 5 F■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ F File allocation table
c 7 D■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ D Directory
╞════ t 9 D■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ ■ In use by a normal file
o 2 D■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ h Hidden, system, read-only
Side r 4 ■■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ █ Temporarily unavailable
1 6 ■■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░ X Conflicting allocation
8 ■■■■■■■■■■■■■■░░░░░░░░░░░░░░░░░░░░░░░░░░ b Bad-Track (unusable)
F1-help F2-save F3-new file F4-import data F9-expand F10-contract Esc-exit
-------------------------------
The complete diskette can all be stuffed by logging over to A: and executing
the program with *.*:
A>stufit *.*
The reorganized disk then looks as follows:
----------------
Space Usage for the Complete Diskette
63% 452 sectors given to available free space
1 sector given to the boot record
1% 4 sectors given to the file allocation table
1% 7 sectors given to the file directory
36% 256 sectors given to normal files
No sectors given to hidden, system or read-only files
No sectors given to unavailable space (free with CHKDSK)
No sectors given to conflicting file space allocation
No sectors given to Bad-Track (unusable)
Map of Diskette Space
Track 1 2 3 3
0123456789012345678901234567890123456789
1 B░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ ░ Unused sector (free space)
Side S 3 F░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ B Boot record
0 e 5 F░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ F File allocation table
c 7 D░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ D Directory
╞════ t 9 D░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ ■ In use by a normal file
o 2 D░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ h Hidden, system, read-only
Side r 4 ░░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■ █ Temporarily unavailable
1 6 ░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■■ X Conflicting allocation
8 ░░░░░░░░░░░░░░░░░░░░░░░░░■■■■■■■■■■■■■■■ b Bad-Track (unusable)
F1-help F2-save F3-new file F4-import data F9-expand F10-contract Esc-exit
-----------------------------
All the quick-access space near the directory is now free for working
storage.
A more representative hard disk situation is shown below. Here, the disk
has had a number of reference subdirectories stuffed into the inside,
leaving a working space in the middle of the disk:
-----------------------
╔════════════════════════════════════════════════════════════════════════════
║ Menu 2.3 ║
║ Map of Space Usage for the Entire Disk ║
║ ║
║ 34% of disk space is free ║
║ ║
║ Proportional Map of Disk Space ║
║ ■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■B■■■■■■■ B ║
║ represents ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ represents ║
║ space ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ bad ║
║ in use ░░■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■░░░ sectors ║
║ ░░░■■░░░░░░░■░░░░░░░░░░■░■■■■■■■■■■■■░░░░░░░░░░░░░ ║
║ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
║ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ║
║ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░■■░■■■■■■■░■■■■■■■■ ║
║ ■■■■■■■■■■■■■■■■■■■■■■■░░░░■■■■■■■■■■■■■■■■■■■■■■■ ║
║ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ ║
║ Each position represents 1/500th of the total disk space ║
║ ║
║ Press any key to continue... ║
║ ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Currently selected: No file or disk sector selected ║
║ Drive C: Directory: root directory ║
F1-help F2-save F3-new file F4-import data F9-expand F10-contract Esc-exit
-----------------------
At this point, the disk could no doubt benefit from stuffing some more of the
less-frequently used files into the inside of the disk, freeing up the space
nearest the outside.
In the final display below, the root directory files and the files on two
of the larger subdirectories were stuffed. The inner space of the disk
is packed, but the outer/closer area is now fragmented. At some
point a disk needs periodic maintenance in the form of a complete
backup and restore, using STUFIT to put reference files away from the out-
side of the disk.
------------------
╔════════════════════════════════════════════════════════════════════════════
║ Menu 2.3